<?php


namespace app\api\controller\v1;


use app\api\model\Image;

class Ceshi
{
    public function ceshi()
    {
        $img = Image::get(1);
        $imgs = explode('public',$img['url']);

        $image = \think\Image::open(config('setting.cms_img_url').$imgs[1]);
        $image->text('本照片制作甜茶派对实名认证使用',config('setting.img_url').'/WeiRuanYaHei.ttf',20,'#ffffff',\think\Image::WATER_NORTHWEST,0,45)->save(config('setting.cms_img_url').$imgs[1]);
        return $image;
    }
}